package cn.kgc.controller.jump;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 此controller类专门用于-跳转页面
 * 逻辑代码在logic包下实现
 */
@Controller
@RequestMapping("/to")
public class JumpTo {

    //跳转index页面
    @RequestMapping("/index")
    public String index(){
        return "index";
    }
    //跳转log页面
    @RequestMapping("/log")
    public String log(){
        return "log";
    }
    //跳转error页面
    @RequestMapping("/error")
    public String error(){
        return "error";
    }
    //跳转login页面
    @RequestMapping("/login")
    public String login(){
        return "login";
    }
    //跳转login页面
    @RequestMapping("/welcome")
    public String welcome(){
        return "welcome";
    }
    //Test测试专用
    @RequestMapping("/test")
    public String Test1(){
        return "test";
    }

    //跳转到任务管理界面
    @RequestMapping("/task")
    public String task(){
        return "desktop/sfc-task";
    }

    @RequestMapping("/car")
    public String car(){
        return "desktop/sfc-car";
    }

    @RequestMapping("/chapt")
    public String chapt(){
        return "desktop/sfc-chapt";
    }

    @RequestMapping("/meet")
    public String meet(){
        return "desktop/sfc-meet";
    }

    @RequestMapping("/busin")
    public String busin(){
        return "desktop/sfc-busin";
    }

    @RequestMapping("/trre")
    public String trre(){
        return "desktop/sfc-trre";
    }

    //公告查看
    @RequestMapping("/zym-index")
    public String announcement() {
        return "annunciate/zym-index";
    }

    //公告添加
    @RequestMapping("/zym-tianjia")
    public String add() {
        return "annunciate/zym-tianjia";
    }

    //公告详情
    @RequestMapping("/zym_xiangqing")
    public String xq() {
        return "annunciate/zym_xiangqing";
    }

    // 郭某人-跳转到cate 文档列表页面
    @RequestMapping("/cate")
    public String cate(){
        return "document/gth-cate";
    }
    // 郭某人-跳转到order-list 个人文档列表页面
    @RequestMapping("/order-list")
    public String orderlist(){
        return "document/gth-order-list";
    }
    // 郭某人-跳转到recycler 文档回收站页面
    @RequestMapping("/recycler")
    public String recycler(){
        return "document/gth-recycler";
    }
    // 郭某人-页面跳转到cate 文档列表页面
    @RequestMapping("/backcate")
    public String backcate(){
        return "redirect:cate";
    }

    // 郭某人-文档列表页面cate，跳转到添加文件夹页面
    @RequestMapping("/addfolder")
    public String addfolder(){
        return "document/gth-folder";
    }

    //郭某人-文档列表页面cate，跳转到添加文件页面
    @RequestMapping("/addfiles")
    public String addfiles(){
        return "document/gth-files";
    }
    //郭某人- 添加文件页面返回到个人列表页面order-list
    @RequestMapping("/filesbackorder")
     public String filesbackorder(){
        return "document/gth-order-list";
    }

    //跳转到请假页面
    @RequestMapping("/toQingJia")
    public String toQingJia(){
        return "hr/wxw-qj.html";
    }
    //跳转到出差页面
    @RequestMapping("/toChuChai")
    public String toChuChai(){
        return "hr/wxw-chuchai.html";
    }

    //跳转到用章管理页面
    @RequestMapping("/yongzhang")
    public String yongzhang(){
        return "administrative/smc-yz";
    }

    //跳转到名片印制页面
    @RequestMapping("/mingpian")
    public String mingpian(){
        return "/administrative/smc-mp.html";
    }

    // 跳转至日程管理模块
    @RequestMapping("/schedule")
    public String schedule(){
        return "/schedule/luorui-schedule";
    }

    //跳转到用车申请页面
    @RequestMapping("/yongche")
    public String yongche(){
        return "/administrative/wxw-yongChe.html";
    }

    //跳转到车辆管理页面
    @RequestMapping("/cheLiang")
    public String cheLiang(){
        return "/administrative/wxw-car.html";
    }
    //跳转到用车记录页面
    @RequestMapping("/Yongche")
    public String Yongche(){
        return "/administrative/wxw-yongchejilu.html";
    }
    //跳转到出差记录页面
    @RequestMapping("/chachaijilu")
    public String chachaijilu(){
        return "/hr/wxw-ChuChaJiLu.html";
    }
    //跳转到请假记录页面
    @RequestMapping("/qingjiajilu")
    public String qingjiajilu(){
        return "/hr/wxw-QingJiaXiangQing.html";
    }

    //跳转到用章管理记录页面
    @RequestMapping("/yongzhangxq")
    public String yongzhangxq(){
        return "administrative/smc-yz-xq.html";
    }

    //跳转到名片印制记录页面
    @RequestMapping("/mingpianxq")
    public String mingpianxq(){
        return "/administrative/smc-mp-xq.html";
    }

    //我的页面
    @RequestMapping("/gth_mydesk")
    public String gth_mydesk(){
        return "/desktop/gth_mydesk";
    }
}
